Jelajahi Sumber

Remove vim PDV settings

The plugin that these correspond to has been moved out to another
repository.
Weiyi Lou 5 tahun lalu
induk
melakukan
d4a6c038ae
3 mengubah file dengan 3 tambahan dan 7 penghapusan
  1. 1 1
      shell/common/coloured-man-pages.sh
  2. 2 2
      shell/common/z.sh
  3. 0 4
      vim/settings/commenting.vim

+ 1 - 1
shell/common/coloured-man-pages.sh

@@ -17,7 +17,7 @@ EOF
 fi
 
 function colored() {
-	env \
+	command env \
 		LESS_TERMCAP_mb=$(printf "\e[1;31m") \
 		LESS_TERMCAP_md=$(printf "\e[1;31m") \
 		LESS_TERMCAP_me=$(printf "\e[0m") \

+ 2 - 2
shell/common/z.sh

@@ -142,12 +142,12 @@ _z() {
             function frecent(rank, time) {
               # relate frequency and time
               dx = t - time
-              return rank * (3.75/((0.0001 * dx + 1) + 0.25))
+              return int(10000 * rank * (3.75/((0.0001 * dx + 1) + 0.25)))
             }
             function output(matches, best_match, common) {
                 # list or return the desired directory
                 if( list ) {
-                    cmd = "sort -g >&2"
+                    cmd = "sort -n >&2"
                     for( x in matches ) {
                         if( matches[x] ) {
                             printf "%-10s %s\n", matches[x], x | cmd

+ 0 - 4
vim/settings/commenting.vim

@@ -1,7 +1,3 @@
 " Toggle Commenting out lines with NERDCommenter.
 nnoremap <silent> cc :call NERDComment("n", "toggle")<CR>
 vnoremap <silent> cc <Esc>:call NERDComment("x", "toggle")<CR>
-
-" Add PHP docblocks.
-let g:pdv_template_dir = expand('~/dotfiles/vim/plugged/pdv/templates')
-map <Leader>b :call pdv#DocumentCurrentLine()<CR>