Last active
June 27, 2023 11:44
-
-
Save tejainece/6c8959609b104dcf925b623a01d77160 to your computer and use it in GitHub Desktop.
My .vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin indent on | |
syntax on | |
set autoread | |
set autowrite | |
set number | |
" Enable mouse | |
set mouse=a | |
" Tabwidth | |
set tabstop=2 shiftwidth=2 noexpandtab smartindent autoindent smarttab | |
" Close Omni-completion preview window after completion is made | |
autocmd CompleteDone * pclose | |
set cursorline | |
highlight CursorLine ctermbg=DarkBlue cterm=none | |
" Ctrl+Space for code completition | |
imap <C-@> <C-x><C-o> | |
" Wrap arrow navigation keys | |
set whichwrap+=<,>,h,l,[,] | |
set backspace=indent,eol,start | |
" Status line | |
set laststatus=2 | |
set statusline= | |
set statusline+=\ %t " Tail of current filename | |
set statusline+=\ | |
" Name of the current function (needs taglist.vim) | |
" TODO set statusline +=\ [Fun(%{Tlist_Get_Tagname_By_Line()})] | |
set statusline+=%= " Fill space | |
set statusline+=%#CursorColumn# " Change background color | |
set statusline+=\ %y " File type | |
" File encoding | |
set statusline+=\ %{&fileencoding?&fileencoding:&encoding} | |
" File format | |
set statusline+=\[%{&fileformat}\] | |
set statusline+=\ %p%% " Percentage of cursor | |
set statusline+=\ %l:%c " Line and column | |
set statusline+=\ | |
" Go import | |
let g:go_fmt_command = "goimports" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" URL: http://vimcolors.com/1069/corvine_light/light | |
" Copy corvine_light.vim to ~/.vim/colors/corvine_light.vim | |
:set cursorline | |
:highlight CursorLine ctermbg=DarkBlue cterm=none | |
colorscheme corvine_light | |
" Color of visually selected text | |
hi Visual term=reverse cterm=reverse guibg=Grey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment