cleanups.
This commit is contained in:
parent
a4273d83dd
commit
f1fef8df61
1 changed files with 9 additions and 9 deletions
18
.vimrc
18
.vimrc
|
|
@ -72,6 +72,12 @@ set confirm
|
||||||
" Allow hidden buffers
|
" Allow hidden buffers
|
||||||
set hidden
|
set hidden
|
||||||
|
|
||||||
|
" Set the clipboard so all vim instances share the same copy/paste buffer
|
||||||
|
set clipboard=unnamed
|
||||||
|
|
||||||
|
" Enable paste mode
|
||||||
|
"set paste
|
||||||
|
|
||||||
" Managed plugins
|
" Managed plugins
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
" List your plugins here
|
" List your plugins here
|
||||||
|
|
@ -79,6 +85,7 @@ call plug#begin()
|
||||||
Plug 'tpope/vim-eunuch'
|
Plug 'tpope/vim-eunuch'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
|
" Hrhrhr...
|
||||||
if hostname() == "jupiter"
|
if hostname() == "jupiter"
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
endif
|
endif
|
||||||
|
|
@ -87,7 +94,7 @@ call plug#begin()
|
||||||
Plug 'flazz/vim-colorschemes'
|
Plug 'flazz/vim-colorschemes'
|
||||||
Plug 'vim-python/python-syntax'
|
Plug 'vim-python/python-syntax'
|
||||||
Plug 'preservim/nerdtree' |
|
Plug 'preservim/nerdtree' |
|
||||||
\ Plug 'Xuyuanp/nerdtree-git-plugin'
|
\ Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
Plug 'preservim/tagbar'
|
Plug 'preservim/tagbar'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
@ -102,6 +109,7 @@ set cursorline
|
||||||
set showmode
|
set showmode
|
||||||
set showcmd
|
set showcmd
|
||||||
|
|
||||||
|
" Always show status line
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set showtabline=2
|
set showtabline=2
|
||||||
|
|
||||||
|
|
@ -157,8 +165,6 @@ set statusline+=\
|
||||||
set statusline+=(C:%2c),
|
set statusline+=(C:%2c),
|
||||||
" Current line / lines in file
|
" Current line / lines in file
|
||||||
set statusline+=[%l/%L]
|
set statusline+=[%l/%L]
|
||||||
" Always show status line
|
|
||||||
set laststatus=2
|
|
||||||
" Return '[tabs]' if tab chars in file, or empty string
|
" Return '[tabs]' if tab chars in file, or empty string
|
||||||
function! StatuslineTabWarning()
|
function! StatuslineTabWarning()
|
||||||
if !exists("b:statusline_tab_warning")
|
if !exists("b:statusline_tab_warning")
|
||||||
|
|
@ -186,12 +192,6 @@ if has("autocmd")
|
||||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Set the clipboard so all vim instances share the same copy/paste buffer
|
|
||||||
set clipboard=unnamed
|
|
||||||
|
|
||||||
" Enable paste mode
|
|
||||||
"set paste
|
|
||||||
|
|
||||||
" Automatically enable paste mode when pasting.
|
" Automatically enable paste mode when pasting.
|
||||||
" https://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim/38258720#38258720
|
" https://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim/38258720#38258720
|
||||||
" https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode
|
" https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue