More mature vim setup
This commit is contained in:
@@ -3,22 +3,39 @@
|
||||
" Basics
|
||||
syntax on
|
||||
set noerrorbells
|
||||
set tabstop=4 softtabstop=4
|
||||
set linebreak
|
||||
set wrap
|
||||
nnoremap <F5> :set linebreak<CR>
|
||||
nnoremap <C-F5> :set nolinebreak<CR>
|
||||
set incsearch
|
||||
set spell
|
||||
|
||||
" Line wrapping in Markdown files
|
||||
autocmd FileType markdown setlocal linebreak
|
||||
autocmd FileType markdown noremap j gj
|
||||
autocmd FileType markdown noremap k gk
|
||||
|
||||
" Tabs
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
|
||||
"Search
|
||||
set ic
|
||||
set smartcase
|
||||
set incsearch
|
||||
|
||||
" Workspace location
|
||||
let g:workspace_session_directory = $HOME . '/.vim/sessions/'
|
||||
|
||||
" Set shell to bash
|
||||
set shell=bash\ -l
|
||||
|
||||
" Shortcuts
|
||||
command! Proximate :e ~/Cloud/Notes/Proximate.md
|
||||
|
||||
" Create panda command for pandout
|
||||
command! -nargs=1 Panda :!~/.scripts/panda.sh % <args>
|
||||
|
||||
" Plugins
|
||||
call plug#begin()
|
||||
"Plug 'plasticboy/vim-markdown'
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'reedes/vim-pencil'
|
||||
Plug 'vim-pandoc/vim-pandoc'
|
||||
"Plug 'plasticboy/vim-markdown'
|
||||
"Plug 'vim-pandoc/vim-pandoc'
|
||||
"Plug 'vim-pandoc/vim-pandoc-syntax'
|
||||
call plug#end()
|
||||
|
||||
Reference in New Issue
Block a user