diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-04-19 17:35:20 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-04-19 17:35:20 +0100 |
commit | 19a735fccfafdd36371d0c3463549c008fd71d71 (patch) | |
tree | 26306d6017019fc81aa2b0d23a966b9c17c48cd4 | |
parent | b5275a77012af88f874fb58dc60a87c1674a4643 (diff) |
Cleant vimrc
-rw-r--r-- | vim/vimrc | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -25,6 +25,7 @@ Plugin 'Tabular' Plugin 'Gundo' Plugin 'altercation/vim-colors-solarized' Plugin 'honza/vim-snippets' +Plugin 'Valloric/YouCompleteMe' filetype plugin indent on syntax on @@ -36,7 +37,13 @@ let mapleader = "\\" let maplocalleader = "-" nmap <Space> <Leader> -" UltiSnips +" Plugins options +let g:ctrlp_map = '<c-p>' +let g:ctrlp_by_filename = 1 +let g:ctrlp_working_path_mode = '' +let g:ctrlp_show_hidden = 1 +let g:ctrlp_open_new_file = 't' + let g:UltiSnipsExpandTrigger="<tab>" let g:UltiSnipsJumpForwardTrigger="<tab>" let g:UltiSnipsJumpBackwardTrigger="<s-tab>" @@ -44,10 +51,7 @@ let g:UltiSnipsListSnippets="<c-l>" let g:UltiSnipsEditSplit="horizontal" let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] -let g:ctrlp_open_new_file = 't' -noremap <c-h> :UltiSnipsEdit<Return> -" Latex-Box let g:tex_flavor='latex' let g:tex_conceal= 'adgm' let g:LatexBox_Folding=0 @@ -77,10 +81,6 @@ let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$', " CTRL-P -let g:ctrlp_map = '<c-p>' -let g:ctrlp_by_filename = 1 -let g:ctrlp_working_path_mode = '' -let g:ctrlp_show_hidden = 1 "" Options @@ -113,11 +113,7 @@ set fillchars=fold:\ ,vert:\ , set showbreak=\ \ \ \ \ \ ... set colorcolumn=0 set scrolloff=0 -if has('gui_running') - set t_Co=256 -else - set t_Co=256 -endif +set t_Co=256 set guitablabel=%N\ %t\ %M set showcmd @@ -169,6 +165,7 @@ nnoremap <Leader>h :set hlsearch!<cr> nnoremap <Leader>n :set relativenumber!<cr> nnoremap <Leader>sv :source ~/.vim/vimrc<cr> nnoremap <Leader>sc :source %<cr> +nnoremap <Leader>es :UltiSnipsEdit<Return> " Other maps nnoremap <Return> o<Esc> |