Personal profile settings
Continuously changing configuration files for convenient terminal and Vim usage. Beyond the following feauture listings, each file has extensive comments on settings.
.bashrc
Default .bashrc
file with additions to set:
- Fancy color prompt with Git branch indication
- Vim as default visual editor
- Vi editing mode for the command line
$PATH
to include.
,~/bin
and~/.local/bin
$INCLUDE
and$LIB
to~/include
and~/lib
accordinglyLIB
to completeLD_LIBRARY_PATH
, so shared libraries here will be found- Locale to
en_US.UTF-8
.bash_profile
Includes .bashrc
to have everything in one place for either terminal or X11
use.
.vimrc
- Improved search
- Filetype based
- syntax highlighting
- automatic indentation
- Unix file format
- UTF-8 encoding
- Persistent undo
- Text width preset
- Overlength indication
- 4 spaces for tabs
- One key paste-toggling
- Cursor position restoration
- Indication for tabs and trailing spaces
- X11 clipboard for copy-pasting
- Mouse enablement even in terminal
- Plugin autoloading (Pathogen)
- Colorscheme setting (Molokai)
- Non-ASCII character highlighting & removal
- Fix difficult to read colors for vimdiff
Mappings
F2
- toggle paste
F8
- toggle tagbar
/
- open/close fold (za
)
-u
- clear undo history (:call ClearUndo()
)
ct
- generate ctags
gb
- list buffers to select
gd
- list buffers to close
,,
- turns off highlighting for searched pattern (:noh
)
Alt+1/2/3
- diffget LOCAL/BASE/REMOTE
Ctrl+Down/Up
- go to next/prev difference
Ctrl+]
- go declaration/definition
Ctrl+T
- go back to previous position
Ctrl+N
- toggle NERD Tree
Ctrl+P
- file list explorer of CtrlP plugin
Ctrl+B
- buffer list explorer of CtrlP plugin
Ctrl+L
- format actual paragraph (gqip
)
Ctrl+U
- toggle undo tree (:UndotreeToggle
)
Tab
- change window (C-w-w
)
Shift-Tab
- change window backwards (C-w-Left
)
.gvimrc
- GUI font and color scheme setting
- Window sizing and positioning
- Toolbar, Menubar, Scrollbar removal
.gitconfig
- Useful basic settings and aliases
.gitignore
- Global ignore file for git
install.sh
./install.sh
- Profile install to
$HOME
with prompt for overwrite:- .bashrc
- .bash_profile
- .bash_aliases
- .vimrc
- .gvimrc
- .gitconfig
- .gitignore
- Vim plugin autoloader download to
$HOME/.vim/autoload/
: - Vim plugin cloning from GitHub to
$HOME/.vim/bundle/
: