Last active
February 18, 2020 13:25
-
-
Save ademar111190/a9e7ed6b38b85209b2069b597679d5ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind -n C-h run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" | |
bind -n C-j run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" | |
bind -n C-k run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" | |
bind -n C-l run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Plugins will be downloaded under the specified directory. | |
call plug#begin('~/.vim/plugged') | |
" Declare the list of plugins. | |
Plug 'https://github.com/junegunn/vim-easy-align.git' | |
Plug 'https://github.com/junegunn/vim-github-dashboard.git' | |
Plug 'https://github.com/sirver/UltiSnips.git' | |
Plug 'https://github.com/honza/vim-snippets.git' | |
Plug 'https://github.com/scrooloose/nerdtree.git' | |
Plug 'https://github.com/Xuyuanp/nerdtree-git-plugin.git' | |
" List ends here. Plugins become visible to Vim after this call. | |
call plug#end() | |
" Nerd tree | |
let NERDTreeShowHidden=1 | |
" let NERDTreeMapOpenInTab='<ENTER>' | |
map <c-t> :NERDTreeToggle<CR> | |
" Vundle begin | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'udalov/kotlin-vim' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Vundle end | |
" General | |
nmap <c-s> :w<CR> | |
imap <c-s> <Esc>:w<CR>a | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
set number " Show line numbers | |
set tabstop=4 " Show \t with width of 4 | |
set softtabstop=4 " Number of columns for a \t | |
set shiftwidth=4 " Indents with a width of 4 | |
set smarttab " Inserts space when hit the <Tab> | |
set expandtab " Expand TABs to spaces | |
set splitbelow | |
set splitright | |
set backspace=indent,eol,start | |
set listchars=space:·,tab:▶\ | |
highlight WhiteSpaceBol guifg=blue | |
highlight WhiteSpaceMol guifg=white | |
match WhiteSpaceMol / / | |
2match WhiteSpaceBol /^ \+/ | |
set list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment