From 953e8e265e6e6ff281867467d5c45edaa03e6920 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 13 May 2021 03:29:17 +0200 Subject: Python 80max + svelte --- plugin/perso.vim | 26 ++++++++++++++++++++++---- 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 j 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 =strftime('%c') " Personal compil shortcurts +noremap :make:cw:!./a.out map :make:cw noremap [q :copen noremap ]q :cclose @@ -75,7 +78,7 @@ noremap ]] :cnext "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 ,cc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch noremap ,cu :silent s/^\V=escape(b:comment_leader,'\/')//e:nohlsearch @@ -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 (neosnippet_expand_or_jump) +smap (neosnippet_expand_or_jump) +xmap (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 mappings. imap (neosnippet_expand_or_jump) @@ -149,8 +160,8 @@ xmap (neosnippet_expand_target) " \ pumvisible() ? "\" : " \ neosnippet#expandable_or_jumpable() ? " \ "\(neosnippet_expand_or_jump)" : "\" -smap neosnippet#expandable_or_jumpable() ? -\ "\(neosnippet_expand_or_jump)" : "\" +"smap neosnippet#expandable_or_jumpable() ? +"\ "\(neosnippet_expand_or_jump)" : "\" " 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 at :ALEToggle + +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} -- cgit v1.2.3