Created
October 21, 2017 23:53
-
-
Save evanlimanto/f0e08199794d205b52a837d869345b2d to your computer and use it in GitHub Desktop.
This file contains 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
execute pathogen#infect() | |
imap jj <Esc> | |
nnoremap gh gT | |
nnoremap gl gt | |
nnoremap 0 ^ | |
let mapleader="," | |
nmap <Leader>w :w<nl> | |
filetype plugin indent on | |
autocmd filetype python set expandtab | |
autocmd filetype html,xml set listchars-=tab:>. | |
if &t_Co > 2 || has("gui_running") | |
" switch syntax highlighting on, when the terminal has colors | |
syntax on | |
endif | |
set autoindent | |
set cindent | |
set list | |
set listchars=tab:>.,trail:.,extends:#,nbsp:. | |
set mouse=a | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set hidden | |
set nowrap | |
set backspace=indent,eol,start | |
set autoindent | |
set copyindent | |
set number | |
set relativenumber | |
set shiftround | |
set showmatch | |
set ignorecase | |
set smartcase | |
set smarttab | |
set hlsearch | |
set incsearch | |
set history=1000 | |
set undolevels=1000 | |
set wildignore=*.swp,*.bak,*.pyc,*.class | |
set title | |
set visualbell | |
set noerrorbells | |
set nobackup | |
set noswapfile | |
" Easy window navigation | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
fun! s:ToggleMouse() | |
if !exists("s:old_mouse") | |
let s:old_mouse = "a" | |
endif | |
if &mouse == "" | |
let &mouse = s:old_mouse | |
echo "Mouse is for Vim (" . &mouse . ")" | |
else | |
let s:old_mouse = &mouse | |
let &mouse="" | |
echo "Mouse is for terminal" | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment