Cleaning and header for file
Also moved the fzf keymappings in here with the other keymaps
This commit is contained in:
parent
e1ed854d3a
commit
c9029cba02
|
@ -1,10 +1,11 @@
|
|||
" ****************************************************************************************************
|
||||
" _ __ _ __ __ _
|
||||
" ____ _ __(_)___ ___ / /_ ____ ______(_)____ ________ / /_/ /_(_)___ ____ ______
|
||||
" / __ \ | / / / __ `__ \______/ __ \/ __ `/ ___/ / ___/_____/ ___/ _ \/ __/ __/ / __ \/ __ `/ ___/
|
||||
" / / / / |/ / / / / / / /_____/ /_/ / /_/ (__ ) / /__/_____(__ ) __/ /_/ /_/ / / / / /_/ (__ )
|
||||
" /_/ /_/|___/_/_/ /_/ /_/ /_.___/\__,_/____/_/\___/ /____/\___/\__/\__/_/_/ /_/\__, /____/
|
||||
" /____/
|
||||
"
|
||||
" ****************************************************************************************************
|
||||
" My basic settings file.
|
||||
|
||||
|
||||
|
@ -16,10 +17,18 @@ source ~/.vimrc
|
|||
" file types. like txt and mkd file, wouldn't really want this.
|
||||
set tabstop=4
|
||||
set expandtab
|
||||
set number
|
||||
|
||||
" Should put us in hybrid numbering, meaning in normal mode numbering will be
|
||||
" relative, but when in insert mode, numbers will be absolute
|
||||
:set number relativenumber
|
||||
:augroup numbertoggle
|
||||
: autocmd!
|
||||
: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||
:augroup END
|
||||
|
||||
" turn spelling on for text based documents
|
||||
autocmd FileType tex,latex,markdown setlocal spell spelllang=en_us
|
||||
autocmd FileType txt,tex,latex,markdown setlocal spell spelllang=en_us
|
||||
|
||||
" copy to the system clipboard
|
||||
" set clipboard+=unnamedplus
|
||||
|
@ -28,20 +37,26 @@ autocmd FileType tex,latex,markdown setlocal spell spelllang=en_us
|
|||
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
||||
\ 'syntax': 'markdown', 'ext': '.md'}]
|
||||
|
||||
" set the colorscheme
|
||||
colorscheme cobalt2
|
||||
|
||||
|
||||
set termguicolors " turn on true colors, since ny term supports that
|
||||
colorscheme cobalt2 " set the colorscheme
|
||||
|
||||
" ***********************************************************
|
||||
" ****************** basic remap keys ***********************
|
||||
" ***********************************************************
|
||||
" remap the split window motion keybindings
|
||||
" stole these from BrodieRobertson
|
||||
map <A-h> <C-w>h
|
||||
|
||||
" Move to the window the left
|
||||
map <A-h> <C-w>h
|
||||
|
||||
" Move to the window to the below
|
||||
map <A-j> <C-w>j
|
||||
|
||||
" Move to the window the the above
|
||||
map <A-k> <C-w>k
|
||||
map <A-l> <C-w>l
|
||||
|
||||
" Move to the window to right
|
||||
map <A:l> <C-w>l
|
||||
|
||||
" nerdtree file manager
|
||||
:nmap <silent> <C-D> :NERDTreeToggle<CR>
|
||||
|
@ -49,4 +64,11 @@ map <A-l> <C-w>l
|
|||
" buffers
|
||||
:nnoremap <F5> :buffers<CR>:buffer<Space>
|
||||
|
||||
" fzf keybindings.
|
||||
map <C-f> :Files<CR>
|
||||
map <leader>b :Buffers<CR>
|
||||
nnoremap <leader>g :Rg<CR>
|
||||
nnoremap <leader>t :Tags<CR>
|
||||
nnoremap <leader>m :Marks<CR>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue