Inital commit of basic settings file for nvim

This commit is contained in:
Russell R. 2020-10-01 18:15:45 -04:00
parent a86961eae2
commit 45922a6f46
1 changed files with 52 additions and 0 deletions

52
nvim-basic-settings.vim Normal file
View File

@ -0,0 +1,52 @@
" _ __ _ __ __ _
" ____ _ __(_)___ ___ / /_ ____ ______(_)____ ________ / /_/ /_(_)___ ____ ______
" / __ \ | / / / __ `__ \______/ __ \/ __ `/ ___/ / ___/_____/ ___/ _ \/ __/ __/ / __ \/ __ `/ ___/
" / / / / |/ / / / / / / /_____/ /_/ / /_/ (__ ) / /__/_____(__ ) __/ /_/ /_/ / / / / /_/ (__ )
" /_/ /_/|___/_/_/ /_/ /_/ /_.___/\__,_/____/_/\___/ /____/\___/\__/\__/_/_/ /_/\__, /____/
" /____/
"
" My basic settings file.
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = $runtimepath
source ~/.vimrc
" Some of my settings, need to figure out how to do these things for only some
" file types. like txt and mkd file, wouldn't really want this.
set tabstop=4
set expandtab
set number
" turn spelling on for text based documents
autocmd FileType tex,latex,markdown setlocal spell spelllang=en_us
" copy to the system clipboard
" set clipboard+=unnamedplus
" set the vimwiki folder path and file type
let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'syntax': 'markdown', 'ext': '.md'}]
" set the colorscheme
colorscheme cobalt2
" ***********************************************************
" ****************** basic remap keys ***********************
" ***********************************************************
" remap the split window motion keybindings
" stole these from BrodieRobertson
map <A-h> <C-w>h
map <A-j> <C-w>j
map <A-k> <C-w>k
map <A-l> <C-w>l
" nerdtree file manager
:nmap <silent> <C-D> :NERDTreeToggle<CR>
" buffers
:nnoremap <F5> :buffers<CR>:buffer<Space>