Compare commits
2 Commits
f623067672
...
f0e2f21251
Author | SHA1 | Date | |
---|---|---|---|
f0e2f21251 | |||
1c478c51a3 |
@ -47,6 +47,8 @@
|
|||||||
|
|
||||||
Plugin 'scrooloose/nerdtree'
|
Plugin 'scrooloose/nerdtree'
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plugin 'tpope/vim-fugitive'
|
||||||
|
Plugin 'mhinz/vim-signify'
|
||||||
|
Plugin 'tmhedberg/matchit'
|
||||||
Plugin 'spf13/vim-colors'
|
Plugin 'spf13/vim-colors'
|
||||||
Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
Plugin 'tpope/vim-repeat'
|
Plugin 'tpope/vim-repeat'
|
||||||
@ -58,6 +60,7 @@
|
|||||||
Plugin 'pR0Ps/molokai-dark'
|
Plugin 'pR0Ps/molokai-dark'
|
||||||
Plugin 'nathanaelkane/vim-indent-guides'
|
Plugin 'nathanaelkane/vim-indent-guides'
|
||||||
Plugin 'luochen1990/rainbow'
|
Plugin 'luochen1990/rainbow'
|
||||||
|
Plugin 'vhda/verilog_systemverilog.vim'
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
@ -78,32 +81,37 @@
|
|||||||
elseif has("win32")
|
elseif has("win32")
|
||||||
set guifont=Iosevka\ Term\ Regular\ 13
|
set guifont=Iosevka\ Term\ Regular\ 13
|
||||||
else
|
else
|
||||||
set guifont=Iosevka\ Term\ Regular\ 12
|
set guifont=Iosevka\ Term\ Regular\ 13.5
|
||||||
end
|
end
|
||||||
|
|
||||||
set columns=120 lines=54
|
set columns=120 lines=54
|
||||||
|
|
||||||
hi Search guifg=black guibg=yellow
|
|
||||||
hi Cursor guifg=white guibg=maroon
|
|
||||||
|
|
||||||
" Hide/Show menu and tool bar
|
" Hide/Show menu and tool bar
|
||||||
function! ToggleGUICruft()
|
function! ToggleGUICruft()
|
||||||
if &guioptions=='i'
|
if &guioptions=='iaA'
|
||||||
exec('set guioptions=imTrL')
|
exec('set guioptions=imTrLaA')
|
||||||
else
|
else
|
||||||
exec('set guioptions=i')
|
exec('set guioptions=iaA')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
map <F11> <Esc>:call ToggleGUICruft()<cr>
|
map <F11> <Esc>:call ToggleGUICruft()<cr>
|
||||||
|
|
||||||
" By default, hide gui menus
|
" GUI default:
|
||||||
set guioptions=i
|
" - 'i' : Hide gui menus
|
||||||
|
" - 'aA' : Modal and modeless autoselect copy to yank buffer
|
||||||
|
set guioptions=iaA
|
||||||
|
|
||||||
else
|
else
|
||||||
set background=dark
|
set background=dark
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" check to make sure vim has been compiled with colorcolumn support
|
||||||
|
" before enabling it
|
||||||
|
if exists("+colorcolumn")
|
||||||
|
set colorcolumn=120
|
||||||
|
endif
|
||||||
|
|
||||||
colorscheme molokai-dark
|
colorscheme molokai-dark
|
||||||
set norelativenumber
|
set norelativenumber
|
||||||
set number
|
set number
|
||||||
@ -111,9 +119,11 @@
|
|||||||
set visualbell t_vb=
|
set visualbell t_vb=
|
||||||
set cindent
|
set cindent
|
||||||
set noautoindent
|
set noautoindent
|
||||||
set tabstop=2
|
set tabstop=4
|
||||||
set shiftwidth=2
|
set softtabstop=4
|
||||||
set scrolloff=10
|
set shiftwidth=4
|
||||||
|
set cmdheight=2
|
||||||
|
set scrolloff=5
|
||||||
set expandtab
|
set expandtab
|
||||||
set showmatch
|
set showmatch
|
||||||
set cursorline
|
set cursorline
|
||||||
@ -129,19 +139,16 @@
|
|||||||
set ruler
|
set ruler
|
||||||
set hid
|
set hid
|
||||||
set viminfo='20,\"50
|
set viminfo='20,\"50
|
||||||
set backspace=2 whichwrap+=<,>,h,l
|
|
||||||
set cmdheight=2
|
|
||||||
set smartcase
|
set smartcase
|
||||||
set magic
|
set magic
|
||||||
set showmode
|
set showmode
|
||||||
let g:spf13_no_autochdir=1
|
set autochdir
|
||||||
|
|
||||||
set backspace=indent,eol,start
|
|
||||||
|
|
||||||
set list
|
set list
|
||||||
set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace
|
set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace
|
||||||
|
|
||||||
" Directories {{{
|
" Directories {{{
|
||||||
|
|
||||||
set backup " backups are nice ...
|
set backup " backups are nice ...
|
||||||
set backupdir=$HOME/.vimbackup// " but not when they clog .
|
set backupdir=$HOME/.vimbackup// " but not when they clog .
|
||||||
set directory=$HOME/.vimswap// " Same for swap files
|
set directory=$HOME/.vimswap// " Same for swap files
|
||||||
@ -153,24 +160,25 @@
|
|||||||
silent execute '!mkdir -p $HOME/.vimviews'
|
silent execute '!mkdir -p $HOME/.vimviews'
|
||||||
au BufWinLeave \* silent! mkview "make vim save view (state) (fds, cursor, etc)
|
au BufWinLeave \* silent! mkview "make vim save view (state) (fds, cursor, etc)
|
||||||
au BufWinEnter \* silent! loadview "make vim load view (state) (fds, cursor, etc)
|
au BufWinEnter \* silent! loadview "make vim load view (state) (fds, cursor, etc)
|
||||||
" }}}
|
|
||||||
|
" }}}
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Module customization {{{
|
" Module customization {{{
|
||||||
|
|
||||||
if isdirectory(expand("~/.vim/bundle/nerdtree"))
|
if isdirectory(expand("~/.vim/bundle/nerdtree"))
|
||||||
map <C-e> <plug>NERDTreeTabsToggle<CR>
|
map <C-e> <plug>NERDTreeTabsToggle<CR>
|
||||||
map <leader>e :NERDTreeFind<CR>
|
map <leader>e :NERDTreeFind<CR>
|
||||||
nmap <leader>nt :NERDTreeFind<CR>
|
nmap <leader>nt :NERDTreeFind<CR>
|
||||||
|
|
||||||
let NERDTreeShowBookmarks=1
|
let g:NERDTreeShowBookmarks=1
|
||||||
let NERDTreeIgnore=['\.py[cd]$', '\~$', '\.swo$', '\.swp$', '^\.git$', '^\.hg$', '^\.svn$', '\.bzr$']
|
let g:NERDTreeIgnore=['\.py[cd]$', '\~$', '\.swo$', '\.swp$', '^\.git$', '^\.hg$', '^\.svn$', '\.bzr$']
|
||||||
let NERDTreeChDirMode=0
|
let g:NERDTreeChDirMode=1
|
||||||
let NERDTreeQuitOnOpen=1
|
let g:NERDTreeQuitOnOpen=1
|
||||||
let NERDTreeMouseMode=2
|
let g:NERDTreeMouseMode=2
|
||||||
let NERDTreeShowHidden=1
|
let g:NERDTreeShowHidden=1
|
||||||
let NERDTreeKeepTreeInNewTab=1
|
let g:NERDTreeKeepTreeInNewTab=1
|
||||||
let g:nerdtree_tabs_open_on_gui_startup=0
|
let g:nerdtree_tabs_open_on_gui_startup=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
@ -206,6 +214,10 @@
|
|||||||
|
|
||||||
nnoremap <C-Z> :bnext <CR>
|
nnoremap <C-Z> :bnext <CR>
|
||||||
|
|
||||||
|
" Visual mode: Keep selection after indent
|
||||||
|
vnoremap < <gv
|
||||||
|
vnoremap > >gv
|
||||||
|
|
||||||
if has("nvim")
|
if has("nvim")
|
||||||
nnoremap <C-Space> za
|
nnoremap <C-Space> za
|
||||||
elseif has("gui_running")
|
elseif has("gui_running")
|
||||||
@ -223,7 +235,21 @@
|
|||||||
nnoremap <C-S-F3> :%s/\s\+$//g<CR>:noh<CR>
|
nnoremap <C-S-F3> :%s/\s\+$//g<CR>:noh<CR>
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
" Highlights {{{
|
||||||
|
"
|
||||||
|
" Highlight coloring I prefer
|
||||||
|
highlight Search guibg=yellow guifg=black
|
||||||
|
highlight Cursor guifg=white guibg=red
|
||||||
|
highlight iCursor guifg=white guibg=red
|
||||||
|
|
||||||
|
" }}}
|
||||||
|
"
|
||||||
|
" File associations {{{
|
||||||
|
|
||||||
|
au! BufRead,BufNewFile * RainbowToggleOn
|
||||||
|
|
||||||
|
" }}}
|
||||||
|
"
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" vim: foldenable foldmethod=marker
|
" vim: foldenable foldmethod=marker
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user