diff options
-rwxr-xr-x | plugin/perso.vim | 26 | ||||
-rwxr-xr-x | plugin/plugin_python-mode.vim | 3 |
2 files changed, 25 insertions, 4 deletions
diff --git a/plugin/perso.vim b/plugin/perso.vim index 3479381..9099cef 100755 --- a/plugin/perso.vim +++ b/plugin/perso.vim @@ -2,7 +2,7 @@ set showcmd set backspace=indent,eol,start -set clipboard=unnamed +set clipboard=unnamedplus set ruler set t_Co=256 "map <leader>j <C-W>j @@ -20,6 +20,8 @@ filetype plugin indent on " Color : autocmd ColorScheme * highlight ExtraWhitespace ctermbg=darkred guibg=darkred colo jellybeans + +colo badwolf set cursorline hi CursorLine term=bold cterm=bold ctermbg=black @@ -63,6 +65,7 @@ inoremap <F8> <C-r>=strftime('%c')<CR> " Personal compil shortcurts +noremap <Space><F9> :make<CR>:cw<CR><CR>:!./a.out<CR> map <F9> :make<CR>:cw<CR><CR> noremap <silent> [q :copen<CR> noremap <silent> ]q :cclose<CR> @@ -75,7 +78,7 @@ noremap <silent> ]] :cnext<CR> "Allow vim clipboad <-> host clipboard to share data -set clipboard=unnamed +set clipboard=unnamedplus " Quick Comment : autocmd FileType c,cpp,java,go,scala,js let b:comment_leader = '//' @@ -88,6 +91,7 @@ autocmd FileType haskell let b:comment_leader = '--' autocmd FileType c,cpp,java,go,scala set foldmethod=syntax + noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> noremap <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> @@ -113,6 +117,7 @@ autocmd Filetype python call SetPythonCompiler() function SetPythonCompiler() if executable("flake8") set makeprg=flake8\ --ignore=E111,E303,E201,E231,E391,E225,E203,E226,W391\ % + set textwidth=2000 endif endfunction @@ -137,6 +142,12 @@ au BufNewFile *.c 0r $VIMHOME/template/skel.c let g:deoplete#enable_at_startup = 1 +imap <C-k> <Plug>(neosnippet_expand_or_jump) +smap <C-k> <Plug>(neosnippet_expand_or_jump) +xmap <C-k> <Plug>(neosnippet_expand_target) +set completeopt-=preview + +"call deoplete#custom#option('auto_complete', v:false) " Plugin key-mappings. " Note: It must be "imap" and "smap". It uses <Plug> mappings. imap <C-k> <Plug>(neosnippet_expand_or_jump) @@ -149,8 +160,8 @@ xmap <C-k> <Plug>(neosnippet_expand_target) " \ pumvisible() ? "\<C-n>" : " \ neosnippet#expandable_or_jumpable() ? " \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" -smap <expr><TAB> neosnippet#expandable_or_jumpable() ? -\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" +"smap <expr><TAB> neosnippet#expandable_or_jumpable() ? +"\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" " For conceal markers. @@ -175,3 +186,10 @@ let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' " Ale only on save let g:ale_lint_on_text_changed = 'never' let g:ale_lint_on_enter = 0 + +autocmd BufNewFile,BufRead /tmp/mesms_* set noautoindent filetype=mail wm=0 tw=78 nonumber digraph nolist nopaste + +map <Esc>at :ALEToggle<CR> + +au BufReadPost,BufNewFile *.tmpl,*.tpm,*.svelte set filetype=html + diff --git a/plugin/plugin_python-mode.vim b/plugin/plugin_python-mode.vim index 2bc009f..9283acb 100755 --- a/plugin/plugin_python-mode.vim +++ b/plugin/plugin_python-mode.vim @@ -9,3 +9,6 @@ let g:pymode_lint_on_write = 0 " Disable folding let g:pymode_folding = 0 + +let g:pymode_options_max_line_length = 200 +let g:pymode_lint_options_pep8 = {'max_line_length': g:pymode_options_max_line_length} |