aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc14
-rwxr-xr-x.xinitrc2
2 files changed, 15 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 89fb3e5..a3a61a0 100644
--- a/.vimrc
+++ b/.vimrc
@@ -218,6 +218,20 @@ function! QuickfixToggle()
endfunction
" }}}
+function! CountScopeLines()
+ normal! mq
+ execute '/^}'
+ let l:end_brace = line('.')
+ execute '?^{'
+ let l:start_brace = line('.')
+ normal! k
+ let l:scope_len = l:end_brace - l:start_brace - 1
+ let l:scope_name = substitute(getline('.'), '\t', ' ', 'g')
+ echom l:scope_len . ' lines in |' . l:scope_name . '|'
+ normal! `q
+endfunction
+command! CountScopeLines call CountScopeLines()
+
" make {{{
nnoremap <leader>m :make all <CR>
" }}}
diff --git a/.xinitrc b/.xinitrc
index 100efcf..d1a873d 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -8,4 +8,4 @@ dunst &
xset r rate 300 40
echo 'Starting XMonad'
-exec xmonad 2>&1 > /dev/null
+exec xmonad