Last active
June 11, 2024 19:43
-
-
Save a-mhamdi/bfddc6020a3e6d722856d161d564dd34 to your computer and use it in GitHub Desktop.
VIM RC FILE
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
"----------------------------" | |
" CONFIGURATION FILE FOR VIM " | |
"----------------------------" | |
set nocompatible " be iMproved, required | |
filetype off " required | |
""" VUNDLE""" | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'wakatime/vim-wakatime' | |
Plugin 'jpalardy/vim-slime', { 'for': ['python', 'julia']} | |
Plugin 'hanschen/vim-ipython-cell', { 'for': ['python', 'julia'] } | |
Plugin 'JuliaEditorSupport/julia-vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'git://git.wincent.com/command-t.git' | |
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Turn on syntax highlighting. | |
syntax on | |
set t_Co=256 | |
" Disable the default Vim startup message. | |
set shortmess+=I | |
" Show line numbers. | |
set relativenumber | |
" Always show the status line at the bottom, even if you only have one window open. | |
set laststatus=2 | |
set backspace=indent,eol,start | |
" for more information on this. | |
set hidden | |
set ignorecase | |
set smartcase | |
" Enable searching as you type, rather than waiting till you press enter. | |
set incsearch | |
" Unbind some useless/annoying default key bindings. | |
nmap Q <Nop> " 'Q' in normal mode enters Ex mode. You almost never want this. | |
" Disable audible bell because it's annoying. | |
set noerrorbells visualbell t_vb= | |
" Enable mouse support. | |
set mouse+=a | |
" Try to prevent bad habits like using the arrow keys for movement. | |
" nnoremap <Left> :echoe "Use h"<CR> | |
" nnoremap <Right> :echoe "Use l"<CR> | |
" nnoremap <Up> :echoe "Use k"<CR> | |
" nnoremap <Down> :echoe "Use j"<CR> | |
nnoremap <C-Left> :tabprevious<CR> | |
nnoremap <C-Right> :tabnext<CR> | |
nnoremap <C-j> :bprev<CR> | |
nnoremap <C-k> :bnext<CR> | |
" EDITS " | |
let g:slime_target = "tmux" | |
let g:slime_default_config = {"socket_name": "default", "target_pane": "{right-of}"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment