add vimwiki
also make other small improvements
This commit is contained in:
parent
14a83d9377
commit
8a8deac854
1 changed files with 15 additions and 2 deletions
|
@ -16,12 +16,15 @@ Plug 'christoomey/vim-tmux-navigator'
|
||||||
Plug 'simeji/winresizer'
|
Plug 'simeji/winresizer'
|
||||||
|
|
||||||
" FILE MANAGEMENT
|
" FILE MANAGEMENT
|
||||||
" nert-tree
|
" nerd-tree
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
|
|
||||||
" fzf plugin
|
" fzf plugin
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
|
" vimwiki
|
||||||
|
Plug 'vimwiki/vimwiki'
|
||||||
|
|
||||||
" GIT STUFF
|
" GIT STUFF
|
||||||
" git
|
" git
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
|
@ -69,7 +72,9 @@ hi MatchParen guibg=NONE guifg=red gui=bold
|
||||||
set number
|
set number
|
||||||
set clipboard=unnamed
|
set clipboard=unnamed
|
||||||
set mouse=nvi
|
set mouse=nvi
|
||||||
set smarttab
|
" set smarttab
|
||||||
|
set expandtab
|
||||||
|
set tabstop=4
|
||||||
set visualbell
|
set visualbell
|
||||||
set virtualedit=block
|
set virtualedit=block
|
||||||
set scrolloff=1
|
set scrolloff=1
|
||||||
|
@ -119,6 +124,8 @@ autocmd BufWritePost init.vim source %
|
||||||
cnoremap <C-p> <Up>
|
cnoremap <C-p> <Up>
|
||||||
cnoremap <C-n> <Down>
|
cnoremap <C-n> <Down>
|
||||||
|
|
||||||
|
nnoremap H ^
|
||||||
|
|
||||||
" toggle hybrid number mode
|
" toggle hybrid number mode
|
||||||
nnoremap <leader>h :set rnu!<CR>
|
nnoremap <leader>h :set rnu!<CR>
|
||||||
:augroup numbertoggle
|
:augroup numbertoggle
|
||||||
|
@ -151,6 +158,9 @@ if !exists('bclose_multiple')
|
||||||
let bclose_multiple = 1
|
let bclose_multiple = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" make all tabs to spaces
|
||||||
|
nnoremap <silent> <leader>i :set expandtab<CR>:retab<CR>
|
||||||
|
|
||||||
" Display an error message.
|
" Display an error message.
|
||||||
function! s:Warn(msg)
|
function! s:Warn(msg)
|
||||||
echohl ErrorMsg
|
echohl ErrorMsg
|
||||||
|
@ -252,6 +262,9 @@ nmap <C-y> :Buffers<CR>
|
||||||
nmap <Leader>f :GFiles<CR>
|
nmap <Leader>f :GFiles<CR>
|
||||||
let g:fzf_buffers_jump = 1
|
let g:fzf_buffers_jump = 1
|
||||||
|
|
||||||
|
" Vimwiki setup
|
||||||
|
let g:vimwiki_list = [{'path': '~/.wiki/'}]
|
||||||
|
|
||||||
" vimtex setup
|
" vimtex setup
|
||||||
let g:vimtex_compile_progname = 'nvr'
|
let g:vimtex_compile_progname = 'nvr'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue