diff options
Diffstat (limited to 'init.vim')
| -rw-r--r-- | init.vim | 50 |
1 files changed, 46 insertions, 4 deletions
@@ -1,5 +1,47 @@ - -" Omni completion +set encoding=utf-8 +set fileencoding=utf-8 +set nu +set rnu +set listchars=tab:▸\ ,eol:¬,trail:• +" set listchars=tab:\|\ " Alternative listchars w/o special chars. +set tw=80 +set colorcolumn=80 +set ic +set hls +set updatecount=0 +set nocompatible +set tabstop=4 +set shiftwidth=4 +set noexpandtab +set mouse+=a +syntax on +"if &term =~ '^screen' +" " tmux knows the extended mouse mode +" set ttymouse=xterm2 +"endif + + +" I know how to setup my editor, I don't need your changes to my vim +" configuration. +set nomodeline + +" Use \-n in normal mode to toggle line numbers +nmap <leader>n :set invnu<CR> +nmap <leader>r :set invrnu<CR> +" Use \-l in normal mode to toggle listchars +nmap <leader>l :set list!<CR> + +" Use \-s to pop open a spelling menu. use ]s to search forwards and [s to go +" backwards. +" Apparently this also doesn't work if spell checking isn't enabled +" at the time you enable it. +set spell +nnoremap \s ea<C-X><C-S> +set nospell + +" set hidden " This will allow you to change buffers w/o saving + +" Omni completion, c-x c-o in insert/append mode filetype plugin on set omnifunc=syntaxcomplete#Complete @@ -23,7 +65,8 @@ let g:netrw_liststyle=3 let g:airline_theme="distinguished" " colorscheme 256_noir -colorscheme distinguished +" colorscheme distinguished +colorscheme sane set guifont=ProFontOTB\ 11 @@ -35,7 +78,6 @@ endif " let g:hardtime_default_on = 1 - " For syntastic it's worth running " SyntasticInfo : to see what's available for the given open file " SyntasticCheck yamllint : if you want to say manually run the `yamllint` |
