no more vifm (never used it), smaller install, no jake, .rev in gitignore
parent
e0a8ba2b10
commit
d151f3a466
@ -1,73 +0,0 @@
|
||||
/*global desc: true*/
|
||||
/*global task: true*/
|
||||
/*global jake: true*/
|
||||
/*global namespace: true*/
|
||||
/*global console: true*/
|
||||
/*global exec: true*/
|
||||
|
||||
|
||||
desc('Default task');
|
||||
task('default', [], function(params) {
|
||||
jake.Task['setup:link'].invoke();
|
||||
jake.Task['setup:submodules'].invoke();
|
||||
});
|
||||
|
||||
|
||||
namespace('setup', function() {
|
||||
|
||||
desc('Links files and dirs to your home directory');
|
||||
task('link', [], function(params) {
|
||||
console.log('Linking files and dirs to your home directory...');
|
||||
|
||||
var cmds = [
|
||||
'ln -s ~/dotfiles/vifm ~/.vifm',
|
||||
'ln -s ~/dotfiles/vim ~/.vim',
|
||||
'ln -s ~/dotfiles/agignore ~/.agignore',
|
||||
'ln -s ~/dotfiles/gitconfig ~/.gitconfig',
|
||||
'ln -s ~/dotfiles/gitignore ~/.gitignore',
|
||||
'ln -s ~/dotfiles/jshintrc ~/.jshintrc',
|
||||
'ln -s ~/dotfiles/editorconf ~/.editorconf',
|
||||
'ln -s ~/dotfiles/slate.js ~/.slate.js',
|
||||
'ln -s ~/dotfiles/tmux.conf ~/.tmux.conf',
|
||||
'ln -s ~/dotfiles/vimrc ~/.vimrc',
|
||||
'ln -s ~/dotfiles/zshrc ~/.zshrc',
|
||||
|
||||
'ln -s ~/dotfiles/zsh/pure/pure.zsh /usr/local/share/zsh/site-functions/prompt_pure_setup'
|
||||
];
|
||||
|
||||
jake.exec(cmds, function() {
|
||||
console.log('Linking complete.');
|
||||
}, { printStdout: true } );
|
||||
});
|
||||
|
||||
desc('Inits and updates the submodules');
|
||||
task('submodules', [], function(params) {
|
||||
console.log('Initializing and updating the git submodules...');
|
||||
|
||||
var cmds = [
|
||||
'git submodule init',
|
||||
'git submodule update',
|
||||
];
|
||||
|
||||
jake.exec(cmds, function() {
|
||||
console.log('Submodules complete.');
|
||||
}, { printStdout: true } );
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
desc('Activate zsh');
|
||||
task('zsh', [], function() {
|
||||
console.log('Activating ZSH...');
|
||||
|
||||
var cmds = [
|
||||
'chsh -s `which zsh`',
|
||||
'/usr/bin/env zsh',
|
||||
'source ~/.zshrc',
|
||||
'sudo mv /etc/zshenv /etc/zprofile'
|
||||
];
|
||||
|
||||
jake.exec(cmds, function() {
|
||||
console.log('ZSH activated.');
|
||||
});
|
||||
});
|
@ -1,43 +0,0 @@
|
||||
" COLORS
|
||||
|
||||
" ln as '~/.vifm/colors/Default'
|
||||
|
||||
" Default = -1 = None, can be used for transparency or default color
|
||||
" Black = 0
|
||||
" Red = 1
|
||||
" Green = 2
|
||||
" Yellow = 3
|
||||
" Blue = 4
|
||||
" Magenta = 5
|
||||
" Cyan = 6
|
||||
" White = 7
|
||||
|
||||
" STYLES
|
||||
" bold
|
||||
" underline
|
||||
" reverse or inverse
|
||||
" standout
|
||||
" none
|
||||
|
||||
|
||||
highlight Win cterm=none ctermfg=default ctermbg=none
|
||||
|
||||
highlight TopLine cterm=none ctermfg=blue ctermbg=none
|
||||
highlight TopLineSel cterm=none ctermfg=blue ctermbg=none
|
||||
highlight StatusLine cterm=none ctermfg=blue ctermbg=none
|
||||
highlight Border cterm=none ctermfg=blue ctermbg=none
|
||||
|
||||
highlight Selected cterm=bold ctermfg=magenta ctermbg=default
|
||||
highlight CurrLine cterm=bold ctermfg=default ctermbg=blue
|
||||
|
||||
highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black
|
||||
highlight CmdLine cterm=none ctermfg=white ctermbg=black
|
||||
highlight ErrorMsg cterm=none ctermfg=red ctermbg=black
|
||||
|
||||
highlight Directory cterm=none ctermfg=cyan ctermbg=default
|
||||
highlight Link cterm=none ctermfg=yellow ctermbg=default
|
||||
highlight BrokenLink cterm=none ctermfg=red ctermbg=default
|
||||
highlight Socket cterm=none ctermfg=magenta ctermbg=default
|
||||
highlight Device cterm=none ctermfg=red ctermbg=default
|
||||
highlight Fifo cterm=none ctermfg=cyan ctermbg=default
|
||||
highlight Executable cterm=none ctermfg=green ctermbg=default
|
@ -1,95 +0,0 @@
|
||||
# You can edit this file by hand, but it's recommended not to do that.
|
||||
|
||||
# Bookmarks:
|
||||
'H
|
||||
/Users/nebelschwade/
|
||||
../
|
||||
'd
|
||||
/Users/nebelschwade/Documents/
|
||||
../
|
||||
'h
|
||||
/Users/nebelschwade/
|
||||
../
|
||||
's
|
||||
/Users/nebelschwade/dotfiles/
|
||||
../
|
||||
'v
|
||||
/Users/nebelschwade/dotfiles/vim/
|
||||
../
|
||||
'w
|
||||
/Users/nebelschwade/Sites/
|
||||
../
|
||||
'x
|
||||
/Users/nebelschwade/Dropbox/
|
||||
../
|
||||
'z
|
||||
/Users/nebelschwade/.vifm
|
||||
../
|
||||
|
||||
# TUI:
|
||||
al
|
||||
q0
|
||||
v2
|
||||
ov
|
||||
m-1
|
||||
l12
|
||||
r12
|
||||
|
||||
# Left window history (oldest to newest):
|
||||
d/Users/nebelschwade/Dotfiles
|
||||
../
|
||||
0
|
||||
d/Users/nebelschwade
|
||||
../
|
||||
0
|
||||
d/Users
|
||||
nebelschwade/
|
||||
2
|
||||
d/Users/nebelschwade
|
||||
Sites/
|
||||
13
|
||||
d/Users/nebelschwade/Sites
|
||||
../
|
||||
0
|
||||
d/Users/nebelschwade
|
||||
Sites/
|
||||
13
|
||||
d/Users
|
||||
nebelschwade/
|
||||
2
|
||||
d/
|
||||
Users/
|
||||
15
|
||||
d
|
||||
|
||||
# Right window history (oldest to newest):
|
||||
D/Users/nebelschwade/Dotfiles
|
||||
oh-my-zsh/
|
||||
2
|
||||
D/Users/nebelschwade
|
||||
../
|
||||
0
|
||||
D
|
||||
|
||||
# Command line history (oldest to newest):
|
||||
:q
|
||||
:source ~/.vifm/vifmrc
|
||||
|
||||
# Search history (oldest to newest):
|
||||
|
||||
# Prompt history (oldest to newest):
|
||||
|
||||
# Registers:
|
||||
|
||||
# Directory stack (oldest to newest):
|
||||
|
||||
# Trash content:
|
||||
|
||||
# State:
|
||||
f
|
||||
i1
|
||||
[.1
|
||||
F
|
||||
I1
|
||||
].1
|
||||
s0
|
@ -1,134 +0,0 @@
|
||||
colorscheme Default
|
||||
|
||||
" Show list of matches on tab completion in command-line mode
|
||||
set wildmenu
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set hlsearch
|
||||
set incsearch
|
||||
|
||||
" Try to leave some space from cursor to upper/lower border in lists
|
||||
set scrolloff=6
|
||||
|
||||
" Set custom status line look
|
||||
set statusline=" %t%= %A %10u:%-7g %15s %20d "
|
||||
|
||||
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,phistory,dirstack,registers,bookmarks
|
||||
set vicmd='/Applications/MacVim.app/Contents/MacOS/Vim -u ~/.vimrc'
|
||||
|
||||
set trash
|
||||
" use OSX Trash dir
|
||||
set trashdir="~/.Trash"
|
||||
set history=100
|
||||
|
||||
set followlinks
|
||||
|
||||
" With this option turned on you can run partially entered commands with
|
||||
" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>).
|
||||
|
||||
set fastrun
|
||||
|
||||
" Natural sort of (version) numbers within text.
|
||||
|
||||
set sortnumbers
|
||||
set sort=+iname
|
||||
|
||||
" Maximum number of changes that can be undone.
|
||||
|
||||
set undolevels=100
|
||||
|
||||
" If you installed the vim.txt help file set vimhelp.
|
||||
" If would rather use a plain text help file set novimhelp.
|
||||
|
||||
set novimhelp
|
||||
|
||||
" If you would like to run an executable file when you
|
||||
" press return on the file name set this.
|
||||
|
||||
set norunexec
|
||||
|
||||
" quick quit and save directory for zsh
|
||||
nmap q :!echo `pwd` > /tmp/vifm-dir<CR>:q<CR>
|
||||
|
||||
nmap <cr> /
|
||||
|
||||
" quicklook on OSX
|
||||
nmap <space> :!ql "%f"<cr>
|
||||
|
||||
" copy over file to adjacent side
|
||||
nmap <c-y> yy<c-w>wp
|
||||
|
||||
" Yank current directory path into the clipboard
|
||||
nmap yd :!echo %d | pbcopy %i<cr>
|
||||
|
||||
" Yank current file path into the clipboard
|
||||
nmap yf :!echo %c:p | pbcopy %i<cr>
|
||||
|
||||
" Mappings for faster renaming
|
||||
nmap I cw<c-a>
|
||||
nmap cc cw<c-u>
|
||||
nmap A cw<c-w>
|
||||
|
||||
nmap S :sort<cr>
|
||||
nmap s :sort<cr>
|
||||
|
||||
" show all bookmarks
|
||||
nmap <c-b> :marks<cr>
|
||||
|
||||
" swap screens
|
||||
nmap <c-w>o <C-W>x
|
||||
|
||||
" display same directory at adjacent side
|
||||
nmap <c-s> hmz<c-w>w'z
|
||||
|
||||
" :com[mand] command_name action
|
||||
" The following macros can be used in a command
|
||||
" %a is replaced with the user arguments.
|
||||
" %c the current file under the cursor.
|
||||
" %C the current file under the cursor in the other directory.
|
||||
" %f the current selected file, or files.
|
||||
" %F the current selected file, or files in the other directory.
|
||||
" %b same as %f %F.
|
||||
" %d the current directory name.
|
||||
" %D the other window directory name.
|
||||
" %m run the command in a menu window
|
||||
|
||||
" preview
|
||||
nmap w :view<cr>
|
||||
|
||||
nmap o :!vim %f<cr>
|
||||
" Open file in the background using its default program
|
||||
nmap O :!open %f<cr>
|
||||
nmap <cr> :!!open %f<cr>
|
||||
|
||||
" standard two-panel file managers mappings
|
||||
nmap <f3> :!less %f<cr>
|
||||
nmap <f4> :edit<cr>
|
||||
nmap <f5> :copy<cr>
|
||||
nmap <f6> :move<cr>
|
||||
nmap <f7> :mkdir<space>
|
||||
nmap <f8> :delete<cr>
|
||||
|
||||
" syntax highlighting with pygmentize. requires latest vifm for color escaping
|
||||
fileview * pygmentize -O style=monokai
|
||||
|
||||
" open everything with terminal vim by default, and override exceptions below
|
||||
filetype * vim %f
|
||||
filetype *.html,*.htm links %f %i &
|
||||
filetype *.md,*.txt,*.tex vim %f
|
||||
|
||||
|
||||
mark h ~
|
||||
mark w ~/Sites/
|
||||
mark x ~/Dropbox/
|
||||
mark d ~/Documents/
|
||||
mark s ~/dotfiles/
|
||||
mark v ~/dotfiles/vim/
|
||||
|
||||
|
||||
" diff files in vim
|
||||
command diff vim -d %f %F
|
||||
|
||||
command zip zip -r %f.zip %f
|
||||
command run !! ./%f
|
||||
|
Loading…
Reference in New Issue