Skip to content

Instantly share code, notes, and snippets.

@ademar111190
Last active February 18, 2020 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ademar111190/a9e7ed6b38b85209b2069b597679d5ad to your computer and use it in GitHub Desktop.
Save ademar111190/a9e7ed6b38b85209b2069b597679d5ad to your computer and use it in GitHub Desktop.
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"
" 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